<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* ol li {
        color:red; */

        .habby li {
            color:red;
        }
        ol a{
            color:yellow;
        }
    
    </style>
    
</head>
<body>
    <ul>
        <li>吃饭</li>
        <li>吃饭</li>
        <li>吃饭</li>
    </ul>

    <ol class="habby">
        <li>吃饭</li>
        <li>吃饭</li>
        <li><a href="#">aaa</li>
    </ol>
</body>
</html>